import { apiUrl } from '@/api/url'
import $http from './http'

// 获取三方授权和账号信息
export const getThirdInfoAPI = (params) => $http.post(`${apiUrl.wapi}extend/third/get-third-info`, params)

// 快捷登录接口
export const thirdLoginAPI = (params) => $http.post(`${apiUrl.wapi}center/common/third-login`, params)

// 社交账号列表
export const getThirdListAPI = (params) => $http.post(`${apiUrl.wapi}extend/user/third-list`, params)

// 绑定三方平台
export const bindThirdAccountAPI = (params) => $http.post(`${apiUrl.wapi}third/bind-third-account`, params)

// 解绑三方平台
export const unbindThirdAccountAPI = (params) => $http.post(`${apiUrl.wapi}third/unbind-third-account`, params)

// 判断账号是否存在
export const verifyAccountAPI = (params) => $http.post(`${apiUrl.wapi}extend/user/verify-account`, params)
